import {
  request
} from '@/utils/request.js'
//获取轮播图
export const apiGetBanner = () => {
  return request({
    url: '/homeBanner',
  })
}
//获取每日推荐
export const apiGetRecommend = () => {
  return request({
    url: '/randomWall',
  })
}
//获取公告
export const apiGetNotice = (data = {}) => {
  return request({
    url: '/wallNewsList',
    data,
  })
}
//专题精选
export const apiGetClassify = (data = {}) => {
  return request({
    url: '/classify',
    data,
  })
}
//分类详情
export const apiGetClassifyDetail = (data = {}) => {
  return request({
    url: '/wallList',
    data,
  })
}
//壁纸评分
export const apiGetWallScore = (data = {}) => {
  return request({
    url: '/setupScore',
    data,
  })
}

//下载记录
export const apiWriteDownLoad = (data = {}) => {
  return request({
    url: '/downloadWall',
    data,
  })
}
//个人信息
export const apiGetUserInfo = (data = {}) => {
  return request({
    url: '/userInfo',
  })
}
//获取历史列表
export const apiGetHistory = (data = {}) => {
  return request({
    url: '/userWallList',
    data,
  })
}
//壁纸公告详情
export const apiGetNoticeDetail = (data = {}) => {
  return request({
    url: '/wallNewsDetail',
    data,
  })
}
//搜索
export const apiGetSearch = (data = {}) => {
  return request({
    url: '/searchWall',
    data,
  })
}